# 【练习】阶乘
# 编写一个Python程序，使用递归算法，计算给定正整数n的阶乘。阶乘的定义是从1到n所有正整数的乘积。例如3的阶乘为123=6。
from 测吧.src.week2.day1.factorial import *
def test_factorial_recursion():
    assert factorial_recursion(3) == 6
def test_factorial_for():
    assert factorial_for(3) == 6
test_factorial_recursion()
test_factorial_for()
